package com.wisely.highlight_spring4.ch1.aop;

import org.springframework.stereotype.Service;

@Service
public class DemoAnnotationService {
	@Action(name="demoAnnotation")
    public String add(int x){
		System.out.println("demoAnnoation used!, parameter x ="+x);
		if(x == 0){
			throw new RuntimeException("exception : x="+x);
		}
		return "good";
	} 
   
}
